package love.yuanmengrobot.thousandlanguagegarden.bus.controller;

import love.yuanmengrobot.thousandlanguagegarden.bus.entity.BookLabels;
import love.yuanmengrobot.thousandlanguagegarden.bus.service.BookLabelsService;
import love.yuanmengrobot.zframe.ioc.annotation.Autowired;
import love.yuanmengrobot.zframe.mvc.annotation.Controller;
import love.yuanmengrobot.zframe.mvc.annotation.RequestMapping;


import javax.annotation.Resource;

/**
 * 书籍标签(BookLabels)表控制层
 *
 * @author makejava
 * @since 2021-07-13 14:00:36
 */
@Controller
@RequestMapping("bookLabels")
public class BookLabelsController {
    /**
     * 服务对象
     */
    @Autowired
      BookLabelsService bookLabelsService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @RequestMapping("selectOne")
    public BookLabels selectOne(String id) {
        return this.bookLabelsService.queryById(id);
    }

}
